package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_pms_bzb database table.
 * 
 */
@Entity
@Table(name="per_pms_bzb")
@NamedQuery(name="PerPmsBzb.findAll", query="SELECT p FROM PerPmsBzb p")
public class PerPmsBzb implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int bzbiid;

	private int bzbnum;

	//bi-directional many-to-one association to PerPmsDept
	@ManyToOne
	@JoinColumn(name="DEPTID")
	private PerPmsDept perPmsDept;

	//bi-directional many-to-one association to PerPmsPot
	@ManyToOne
	@JoinColumn(name="POTID")
	private PerPmsPot perPmsPot;

	public PerPmsBzb() {
	}

	public int getBzbiid() {
		return this.bzbiid;
	}

	public void setBzbiid(int bzbiid) {
		this.bzbiid = bzbiid;
	}

	public int getBzbnum() {
		return this.bzbnum;
	}

	public void setBzbnum(int bzbnum) {
		this.bzbnum = bzbnum;
	}

	public PerPmsDept getPerPmsDept() {
		return this.perPmsDept;
	}

	public void setPerPmsDept(PerPmsDept perPmsDept) {
		this.perPmsDept = perPmsDept;
	}

	public PerPmsPot getPerPmsPot() {
		return this.perPmsPot;
	}

	public void setPerPmsPot(PerPmsPot perPmsPot) {
		this.perPmsPot = perPmsPot;
	}

}